package com.chanzany.iterator.case1;

import lombok.Getter;
import lombok.Setter;


@Setter
@Getter
public abstract class College {
    private String name;
    //增加系的方法
    public abstract void addDepartment(Department d);

    //返回一个迭代器,遍历
    public abstract Iterator<Department> iterator();
}
